{extend name="base:base" /}


{block name="body"}

<div class="container">


    <table class="table table-striped" >
        <?php
        foreach ($service_annotation as $k => $v) {
            ?>
            <thead>
                <tr>
                    <th><?php echo $k; ?></th>
                    <th><?php echo $v['title']; ?></th>
                    <th>URL</th>
                    <th nowrap>测试</th>
                </tr>
            </thead>
            <?php
            if (isset($v['child'])) {
                foreach ($v['child'] as $k2 => $v2) {

                    $url = 'index' . '/' . hump_to_underline($k) . '/' . $k2;
                    ?>
                    <tr>
                        <td><?php echo $k2; ?></td>
                        <td><?php echo $v2['title']; ?></td>
                        <td><?php echo url($url); ?></td>

                        <td nowrap>
                            <a class="btn btn-primary btn-xs"                                
                               href="javascript:window.open('<?php echo url($url); ?>','_blank','width=1000,height=700,menubar=no,toolbar=no, status=no,scrollbars=yes')">打开</a>
                        </td>
                    </tr>
                    <?php
                }
            }
        }
        ?>
    </table>

</div>


{/block}